package com.wx.mall.feign;


import com.wx.mall.feign.hystrix.OperateFeignClientHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "mall-operate",fallback = OperateFeignClientHystrix.class)
public interface OperateFeignClient {

    @GetMapping("/disUseFeign/getTotal")
    Map<String,Integer> getTotal(@RequestParam Long useId);
}
